package org.lemon.cla.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.lemon.cla.enums.UserRoleEnum; // 导入用户角色枚举

import java.time.LocalDateTime;

@Data
@Schema(description = "用户响应对象 (不含密码)")
public class UserResponse {

    @Schema(description = "用户ID", example = "1")
    private Integer userId;

    @Schema(description = "用户名", example = "zhangsan")
    private String username;

    @Schema(description = "头像URL", example = "http://example.com/avatar.jpg")
    private String avatarUrl;

    @Schema(description = "用户角色", example = "学生", allowableValues = {"学生", "管理员"})
    private UserRoleEnum role;

    @Schema(description = "真名", example = "张三")
    private String realName;

    @Schema(description = "手机号", example = "13812345678")
    private String phone;

    @Schema(description = "邮箱", example = "zhangsan@example.com")
    private String email;

    @Schema(description = "创建时间", example = "2023-01-01T10:00:00")
    private LocalDateTime createTime;

    @Schema(description = "最后登录时间", example = "2023-10-26T15:30:00")
    private LocalDateTime lastLogin;

    // 注意：这里没有 password 字段
}